package net.carmanagement;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class CarManagementActivity extends Activity {

	private Button btnCadastrar;

	@Override
	public void onCreate(Bundle savedInstanceState) {

		startService(new Intent(this, NossoServico.class));

		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		btnCadastrar = (Button) findViewById(R.id.btnCadastrar);

		btnCadastrar.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {

				Toast.makeText(CarManagementActivity.this, "Cadastrar Veiculo",
						Toast.LENGTH_SHORT).show();
				Intent i = new Intent(CarManagementActivity.this,
						ManterVeiculoActivity.class);
				startActivity(i);
			}
		});
	}

}